// let a = 1;
// console.log(this);
// console.log(this.a);

// function fn() {
//   this.a = 1;
//   console.log(this.a);
// }

// fn();

function fruits() {}

fruits.prototype = {
  color: "red",
  say: function () {
    console.log("My color is " + this.color);
  },
};

var apple = new fruits();
apple.say();

const banana = {
  color: "yellow",
};

apple.say.call(banana);
